<bc:ExGRID x:Class="SLS.Presentation.GridMiniTABLELIST"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:exc="clr-namespace:SLS.Controls;assembly=CLSControls" 
             xmlns:bc="clr-namespace:SLS.Base;assembly=CLSBase"
             xmlns:ldb="clr-namespace:SLS.Presentation.Data;assembly=TABLELISTTB"
             x:Name="Container" 
             ToolTip="{Binding DisplayName}"
             xmlns:meffed="http:\\www.codeplex.com\MEFedMVVM"            
            mc:Ignorable="d"             
           d:DesignHeight="300"
           d:DesignWidth="600"         
        >
    <bc:ExGRID.Resources>
    <ldb:TABLELISTDataSet  x:Key="SETUI" />
    <CollectionViewSource x:Key="vwBaseTable" Source="{Binding Path=TABLELIST,Source={StaticResource SETUI}}" />
    </bc:ExGRID.Resources>
    <StackPanel>
    <WrapPanel>
        <CheckBox Name="IsCheckDataQuality"
        IsChecked="False">CheckDataQuality</CheckBox>
        <Button Name="btnEditRecord"
                Width="Auto"
                Height="Auto"
                VerticalAlignment="Stretch"
                Click="btnEdit_Click">Edit</Button>
        <Button Name="btnEditProcessingRecord"
                Width="Auto"
                Height="Auto"
                VerticalAlignment="Stretch"
                Click="btnEditProcessingRecord_Click">ALL</Button>
     </WrapPanel>
    <WrapPanel>
        <exc:NMICD Name="NMICD"/>
    </WrapPanel>
    <exc:FilteringDataGrid 
          Name="MainGridData"
          ItemsSource="{Binding Source={DynamicResource ResourceKey=vwBaseTable}}"
          AutoGenerateColumns="False"
          IsSynchronizedWithCurrentItem="True"
          SelectionChanged="ItemsControls_SelectionChanged"
          SelectionMode="Extended"
          Height="Auto"
          ColumnWidth="SizeToHeader"
          SelectionUnit="FullRow">
        <DataGrid.Columns>
                <DataGridTextColumn x:Name="GDKEY"
                                    Binding="{Binding Path=GDKEY}"
                                    Header="GDKEY"
                                    Width="SizeToHeader" />
                <DataGridTextColumn x:Name="TABLEID"
                                    Binding="{Binding Path=TABLEID}"
                                    Header="TABLEID"
                                    Width="SizeToHeader" />
                <DataGridTextColumn x:Name="DBNAME"
                                    Binding="{Binding Path=DBNAME}"
                                    Header="DBNAME"
                                    Width="SizeToHeader" />
                <DataGridTextColumn x:Name="TBNAME"
                                    Binding="{Binding Path=TBNAME}"
                                    Header="TBNAME"
                                    Width="SizeToHeader" />
                <DataGridTextColumn x:Name="SNAME"
                                    Binding="{Binding Path=SNAME}"
                                    Header="SNAME"
                                    Width="SizeToHeader" />
                <DataGridTextColumn x:Name="KCOND"
                                    Binding="{Binding Path=KCOND}"
                                    Header="KCOND"
                                    Width="SizeToHeader" />
                <DataGridTextColumn x:Name="TBGROUP"
                                    Binding="{Binding Path=TBGROUP}"
                                    Header="TBGROUP"
                                    Width="SizeToHeader" />
                <DataGridTextColumn x:Name="TBCLASS"
                                    Binding="{Binding Path=TBCLASS}"
                                    Header="TBCLASS"
                                    Width="SizeToHeader" />
                <DataGridTextColumn x:Name="FKPROT"
                                    Binding="{Binding Path=FKPROT}"
                                    Header="FKPROT"
                                    Width="SizeToHeader" />
                <DataGridTextColumn x:Name="FUSER"
                                    Binding="{Binding Path=FUSER}"
                                    Header="FUSER"
                                    Width="SizeToHeader" />
                <DataGridTextColumn x:Name="FDATE"
                                    Binding="{Binding Path=FDATE}"
                                    Header="FDATE"
                                    Width="SizeToHeader" />
                <DataGridTextColumn x:Name="LUSER"
                                    Binding="{Binding Path=LUSER}"
                                    Header="LUSER"
                                    Width="SizeToHeader" />
                <DataGridTextColumn x:Name="LDATE"
                                    Binding="{Binding Path=LDATE}"
                                    Header="LDATE"
                                    Width="SizeToHeader" />
            </DataGrid.Columns>
          </exc:FilteringDataGrid>  
      </StackPanel>
</bc:ExGRID> 